{% extends 'ApiCloud/Base/layout.common.html.twig' %}

{% block body %}
    {% include "ApiCloud/Base/inc.head.light.html.twig" with {title:"企业认证",back:1} %}
    <div class="pad5 fs8 c12">
        填写信息
    </div>
    <div class=" marlr5">
        <div class="pad5 bcf">
            <mu-text-field label="企业名称" placeholder="请输入与证件一致的企业名称" v-model="name"  max-length="10" full-width ></mu-text-field>
        </div>
        <div class="pad5 bcf mart5">
            <mu-text-field label="营业执照注册号" placeholder="请输入15位营业执照注册号或者18位统一社会信用代码" v-model="code"  full-width ></mu-text-field>
        </div>
        <div class="pad5 bcf mart5">
            <div class="flrc fs8 c12">
                <div class="wh25-25 flcc bdda round3 pos-r">
                     <img :src="picUrl(pic)" alt="" class="wh25-25" v-if="isTrue(pic)" onerror="this.src=pic404">
                     <img :src="picAdd" alt="" class="wh10-10 op5" v-if="!isTrue(pic)" onerror="this.src=pic404">
                    <mu-ripple @click="selectHeadPic()"></mu-ripple>
                </div>
                <div class="flex1 lh2 pad5">
                    <div class="c11">营业执照</div>
                    <div>1.请上传营业执照清晰彩色原件扫描件或数码照</div>
                    <div>2.支持.jpg .jpeg .png .bmp格式照片，大小不超过10M</div>
                </div>
            </div>
        </div>
    </div>
    <div class="pad10 bcf">
        <mu-button @click="submit()" round large :color="c1" full-width>发起认证</mu-button>
    </div>
    <div class="pad5 fs8 c12 mart10">
        认证状态
    </div>
    <div class="pad5">
        <div class="c12 pad10 bdso round3 marb5 bcf fs8 lh2" v-for="item in log">
            <div class="flrc">
                <div>企业名称：</div>
                <div class="flex1 ">[[item.name]]</div>
            </div>
            <div class="flrc">
                <div>营业执照注册号：</div>
                <div class="flex1 ">[[item.code]]</div>
            </div>
            <div class="flrc">
                <div>认证状态：</div>
                <div class="flex1 ">
                    <span class="c12" v-if="item.status == 0">未审核</span>
                    <span class="c07" v-if="item.status == 2">未通过</span>
                    <span class="c01" v-if="item.status == 1">已通过</span>
                </div>
            </div>
            <div class="flrc">
                <div>认证时间：</div>
                <div class="flex1 ">[[str2time(item.createAt)]]</div>
            </div>
            <div class="tac">
                <div class="pad5 c12 bdda round3 fs8">由于隐私原因图片已隐藏</div>
{#                 <img class="w100" :src="picUrl(item.pic)" alt="" onerror="this.src=pic404">#}
            </div>
        </div>
    </div>




{% endblock %}
    {% block myJs %}

        <script type="text/javascript" src="{{ root }}/assets/oss/lib/crypto1/crypto/crypto.js"></script>
        <script type="text/javascript" src="{{ root }}/assets/oss/lib/crypto1/hmac/hmac.js"></script>
        <script type="text/javascript" src="{{ root }}/assets/oss/lib/crypto1/sha1/sha1.js"></script>
        <script type="text/javascript" src="{{ root }}/assets/oss/lib/base64.js"></script>
        {#<script type="text/javascript" src="{{ root }}/assets/oss/lib/plupload-2.1.2/js/plupload.full.min.js"></script>#}
        <script type="text/javascript" src="{{ root }}/assets/oss/uploadMy.js{{ rnd }}"></script>
    {% endblock %}
